package com.epam.qanda.db.service;

import java.util.List;

import com.epam.qanda.db.dao.impl.ModeratorCategoryDao;
import com.epam.qanda.db.model.ModeratorCategory;

public class ModeratorCategoryService {
	public <T> void create(T element) {
		new ModeratorCategoryDao().create(element);
	}

	public <T> T read(Integer id) {
		return new ModeratorCategoryDao().read(id);
	}

	public void delete(Integer id) {
		new ModeratorCategoryDao().delete(id);
	}

	public <T> void update(T element) {
		new ModeratorCategoryDao().update(element);
	}

	public <T> T getModeratorCategory(Integer moderatorId) {
		return new ModeratorCategoryDao().getModeratorCategory(moderatorId);
	}

	public List<ModeratorCategory> getModeratorCategories(Integer userId) {
		return new ModeratorCategoryDao().getModeratorCategories(userId);
	}

	public void deleteByUserId(Integer userId) {
		new ModeratorCategoryDao().deleteByUserId(userId);
	}
	
}
